/**
 * 文本链接 a
 */
//保证所有a标签都有href
$("a").each(function(){

	 aHref = this.href;
	if( aHref=="" || aHref==undefined ){
			$(this).attr("href","javascript:void(0)");
	}
	
	//给a标签加title
	 aTitle = this.title;
	 aText = this.text;
	
	if( aTitle=="" || aTitle==undefined ){
		if( aText!="" || aText!=undefined ){
			$(this).attr("title",$.trim(aText));
		}
	}
	
});


//select下的option添加title
$("option").each(function(){
	var oTitle = this.title;
	var oText = this.text;
	if( oTitle=="" || oTitle==undefined ){
		if( oText!="" || oText!=undefined ){
			$(this).attr("title",$.trim(oText));
		}
	}
});

//所有页面都有的--搜索
$("#title").attr("title","请输入关键词");
$("#form_cds .search-img").attr("title","搜索");